#ifndef LOGINWIDGET_H
#define LOGINWIDGET_H

#include <QWidget>
#include<animationstackedwidget.h>
#include<iplineedit.h>
#include "mainWindow.h"
#include"clientsocket.h"
#include"unit.h"
namespace Ui {
class LoginWidget;
}

class LoginWidget : public CustomMoveWidget
{
    Q_OBJECT

public:
    explicit LoginWidget(QWidget *parent = nullptr);
    ~LoginWidget();

private slots:
    void on_btnWinMenu_clicked();

    void on_btnCancel_clicked();

    void on_btnWinClose_2_clicked();

    void on_btnWinClose_clicked();

    void on_btnLogin_clicked();
    //void SltTcpStatus(const quint8 &state);
    void onSignalMessage(const quint8 &type,const QJsonValue &dataVal);
    void onSignalStatus(const quint8 &state);
private:

    Ui::LoginWidget *ui;

    //获取服务器的socket
    ClientSocket*m_tcpSocket;

};

#endif // LOGINWIDGET_H
